/******************************************************************************
 *                                                                            *
 *               (c) 2008-2009 HutLab. All rights reserved.                   *
 *                        Eduardo Henrique Leite                              *
 *                                                                            *
 ******************************************************************************

 History:
 Created 01/01/2009

 */

package hutlab.sudoku.engine.ui;

/**
 * Game menu item class.
 */
public class MenuItem {

    // ----- FIELDS -----

    private String mText;
    private boolean mActive;

    // ----- GETTERS -----

    /**
     * Returns the menu item's text.
     */
    public String getText() {
        return mText;
    }

    /**
     * Returns the menu item's active flag.
     */
    public boolean getActive() {
        return mActive;
    }

    // ----- SETTERS -----

    /**
     * Sets the menu item's text.
     */
    public void setText(String text){
        mText = text;
    }

    /**
     * Return the menu item's active flag.
     */
    public void setActive(boolean active){
        mActive = active;
    }

    // ----- CONSTRUCTOR ------

    /**
     * Creates a new MenuItem object.
     */
    public MenuItem(){
    }

    /**
     * Creates a new MenuItem object and sets the Text property.
     */
    public MenuItem(String text){
        this.mText = text;
    }
}
